<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.js"></script>
    <script src="./js/习题Data.js"></script>
    <script src="./js/习题.js"></script>
    <script>
        var flag = "ture"
        $(cartGoods).each(function (idx, item) {
            if (this.isChecked
                == false) {
                flag = "false";
            }
        })
        console.log(flag);
        // 第二题
        var arr = [];
        arr = JSON.parse(JSON.stringify(persons));
        $(arr).each(function () {
            this.salary = (this.salary) * 1 + 2000;
        })
        console.log(persons, arr);
    </script>
</body>

</html>